package com.tubang.logistics;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
 * springboot启动类
 * @ClassName TubangOrganizationDriver 
 * @Description TODO
 * @author wsl 
 * @date 2017年11月29日 下午2:11:40
 */
@SpringBootApplication
@EnableTransactionManagement
@MapperScan(value = {"com.tubang.component.mapper","com.tubang.logistics.mapper"})
@ComponentScan(value = {"com.tubang.component","com.tubang.logistics"})
public class TubangLogisticsDriver {
	
//	@Bean
//	public ServletRegistrationBean dispatcherRegistration(DispatcherServlet dispatcherServlet) {
//		ServletRegistrationBean registration = new ServletRegistrationBean(dispatcherServlet);
//		registration.addUrlMappings("*.html");
//		return registration;
//	}

	public static void main(String[] args) {
		SpringApplication.run(TubangLogisticsDriver.class, args);
		StringBuilder sb = new StringBuilder();
		sb.append("\r\n======================================================================\r\n");
		sb.append("\r\n    欢迎使用-物流系统  - Powered By ermao     佛祖保佑      永无BUG       \r\n");
		sb.append("\r\n======================================================================\r\n");
		System.out.println(sb.toString());
	}
}
